package org.csu.small.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @author SongYaolun
 * @version 1.0
 * @date 2020/6/14 21:40
 */
@Data
@TableName("small_order_item")
public class OrderItem {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private BigInteger orderNo;
    private Integer productId;
    private String productName;
    private String productImage;
    private BigDecimal currentUnitPrice;
    //商品数量
    private int quantity;
    private BigDecimal totalPrice;
    @TableField(fill = FieldFill.INSERT )
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
